package com.syy.spider.service.impl;

import com.syy.spider.dao.AdminMapper;
import com.syy.spider.pojo.Admin;
import com.syy.spider.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminMapper adminMapper;

    @Override
    public Admin selectUserByNameAndPas(String oldPas, String username) {
        return adminMapper.selectUserByNameAndPas(oldPas,username);
    }

    @Override
    public void updatePwd(String username, String newPas) {
        adminMapper.updatePwd(username,newPas);
    }
}
